package com.learning.spring.cloud.ms.hystrix.dashboard;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * ClassName: MsConsumerMovieApplication
 * Description:
 * <p>
 * 1- 可视化监控 HystrixDashboard 需要使用注解 @EnableHystrixDashboard。
 * 2- 并没有注册到注册中心
 * 3- 访问地址： http://localhost:8030/hystrix
 * <p>
 * 1- 依次启动
 * ms-discovery-eureka
 * ms-provider-user
 * ms-consumer-movie
 * ms-gateway-zuul
 * ms-hystrix-dashboard
 * <p>
 * 2- hystrix监控地址：http://localhost:8040/hystrix.stream
 * <p>
 * 3- 访问客户化监控地址： http://localhost:8030/hystrix
 * <p>
 * 4- 在可视化界面输入地址 http://localhost:8040/hystrix.stream，随意填写Title= ms-gateway-zuul 点击监控
 * <p>
 * 5. 访问接口 http://localhost:8040/ms-provider-user/user/1，然后观察 可视化界面监控
 * Date: 2019/5/31 10:42 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@EnableHystrixDashboard
@SpringBootApplication
public class MsHystrixDashBoardApplication {

    public static void main(String[] args) {
        SpringApplication.run(MsHystrixDashBoardApplication.class, args);
    }
}
